﻿using System;

namespace FinMkts.Messaging
{
    /// <summary>
    /// A message that can be published by a <see cref="Publisher"/> and received by a <see cref="Subscriber"/>
    /// </summary>
    public class AddressedMessage : EventArgs
    {
        /// <summary>
        /// The suject of this message
        /// </summary>
        public string Topic { get; set; }

        /// <summary>
        /// The payload of the message, serilized byte array
        /// </summary>
        public byte[] Body { get; set; }
    }
}